package com.laborder.sysyy.service.coursetable.impl;

import com.laborder.sysyy.dao.CourseTableDaoMapper;
import com.laborder.sysyy.dao.DictionaryDaoMapper;
import com.laborder.sysyy.entity.CourseTable;
import com.laborder.sysyy.entity.Dictionary;
import com.laborder.sysyy.service.coursetable.CourseTableService;
import com.laborder.sysyy.service.dictionary.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 786107529@qq.com FJL
 * @Date 2018/9/10 11:53
 */
@Service
@Transactional
public class CourseTableServiceImpl implements CourseTableService {
    @Autowired
    private CourseTableDaoMapper courseTableDaoMapper;
    @Override
    public List<CourseTable> findCourse(String weekNum){
        return courseTableDaoMapper.findCourse(weekNum);
    }
    @Override
    public int saveCourseTable(CourseTable courseTable){
        return courseTableDaoMapper.saveCourseTable(courseTable);
    }

}
